import { request } from "@/utils/axios";
import { mockUrlPrefix } from "@/api/baseUrl";

export function login(data) {
  return request({
    url: `${mockUrlPrefix}/api/login`,
    method: "post",
    data,
  });
}

export function getUserInfo() {
  return request({
    url: `${mockUrlPrefix}/api/user`,
    method: "get",
  });
}
